﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EasyClassUI.entity {
    public class Post {
        public int PostID { get; set; }
        public string Title { get; set; }
        public string Category { get; set; }
        public int LikeCount { get; set; } // 点赞次数
        public int LookCount { get; set; } // 浏览次数
        public User User { get; set; }
        public byte[] Content { get; set; }//内容(以字节流的形式存储)
        public int StudyGroupID { get; set; }
        public DateTime CreateTime { get; set; }//创建帖子的时间
        public StudyGroup StudyGroup { get; set; }
        // 一条帖子可以有多条评论
        public List<Comment> Comments { get; set; }
    }
}
